/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2025 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim);

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define CAN1_S_Pin GPIO_PIN_3
#define CAN1_S_GPIO_Port GPIOE
#define PWR_12V_2_EN_Pin GPIO_PIN_4
#define PWR_12V_2_EN_GPIO_Port GPIOE
#define RELAY_M_Pin GPIO_PIN_5
#define RELAY_M_GPIO_Port GPIOE
#define MOTOR_IO5_Pin GPIO_PIN_6
#define MOTOR_IO5_GPIO_Port GPIOE
#define MOTOR_IO4_Pin GPIO_PIN_13
#define MOTOR_IO4_GPIO_Port GPIOC
#define MOTOR_IO3_Pin GPIO_PIN_14
#define MOTOR_IO3_GPIO_Port GPIOC
#define MOTOR_IO2_Pin GPIO_PIN_15
#define MOTOR_IO2_GPIO_Port GPIOC
#define ADC_3V3_Pin GPIO_PIN_0
#define ADC_3V3_GPIO_Port GPIOC
#define RELAY_A_Pin GPIO_PIN_2
#define RELAY_A_GPIO_Port GPIOC
#define RELAY_B_Pin GPIO_PIN_3
#define RELAY_B_GPIO_Port GPIOC
#define PWM_AISLE_LIGHT_Pin GPIO_PIN_0
#define PWM_AISLE_LIGHT_GPIO_Port GPIOA
#define ADC_24I_Pin GPIO_PIN_3
#define ADC_24I_GPIO_Port GPIOA
#define SW4_Pin GPIO_PIN_4
#define SW4_GPIO_Port GPIOA
#define USART_4_DIR_Pin GPIO_PIN_5
#define USART_4_DIR_GPIO_Port GPIOA
#define ADC_12V_Pin GPIO_PIN_6
#define ADC_12V_GPIO_Port GPIOA
#define ADC_24V_Pin GPIO_PIN_0
#define ADC_24V_GPIO_Port GPIOB
#define ADC_5V_Pin GPIO_PIN_1
#define ADC_5V_GPIO_Port GPIOB
#define SW2_Pin GPIO_PIN_2
#define SW2_GPIO_Port GPIOB
#define SW1_Pin GPIO_PIN_7
#define SW1_GPIO_Port GPIOE
#define CAN2_S_Pin GPIO_PIN_8
#define CAN2_S_GPIO_Port GPIOE
#define USART_1_DIR_Pin GPIO_PIN_9
#define USART_1_DIR_GPIO_Port GPIOE
#define PWR_RS4851_EN_Pin GPIO_PIN_10
#define PWR_RS4851_EN_GPIO_Port GPIOE
#define AMLED_EN_Pin GPIO_PIN_11
#define AMLED_EN_GPIO_Port GPIOE
#define PWR_12V_1_EN_Pin GPIO_PIN_12
#define PWR_12V_1_EN_GPIO_Port GPIOE
#define PWR_RS2321_EN_Pin GPIO_PIN_13
#define PWR_RS2321_EN_GPIO_Port GPIOE
#define PWR_RS2322_EN_Pin GPIO_PIN_14
#define PWR_RS2322_EN_GPIO_Port GPIOE
#define LEFT_PROX_SW_Pin GPIO_PIN_15
#define LEFT_PROX_SW_GPIO_Port GPIOE
#define USART_2_DIR_Pin GPIO_PIN_10
#define USART_2_DIR_GPIO_Port GPIOB
#define PWR_5V_EN_Pin GPIO_PIN_14
#define PWR_5V_EN_GPIO_Port GPIOB
#define RIGHT_PROX_SW_Pin GPIO_PIN_15
#define RIGHT_PROX_SW_GPIO_Port GPIOB
#define PWR_PROX_EN_Pin GPIO_PIN_10
#define PWR_PROX_EN_GPIO_Port GPIOD
#define LED1_Pin GPIO_PIN_11
#define LED1_GPIO_Port GPIOD
#define LED3_Pin GPIO_PIN_12
#define LED3_GPIO_Port GPIOD
#define PWR_RS4853_EN_Pin GPIO_PIN_13
#define PWR_RS4853_EN_GPIO_Port GPIOD
#define USART_5_DIR_Pin GPIO_PIN_14
#define USART_5_DIR_GPIO_Port GPIOD
#define PWR_RS4855_EN_Pin GPIO_PIN_15
#define PWR_RS4855_EN_GPIO_Port GPIOD
#define LED2_Pin GPIO_PIN_8
#define LED2_GPIO_Port GPIOC
#define PWM_AMLED_Pin GPIO_PIN_8
#define PWM_AMLED_GPIO_Port GPIOA
#define MOTOR_OE_Pin GPIO_PIN_7
#define MOTOR_OE_GPIO_Port GPIOB
#define MOTOR_IO1_Pin GPIO_PIN_0
#define MOTOR_IO1_GPIO_Port GPIOE
#define SW3_Pin GPIO_PIN_1
#define SW3_GPIO_Port GPIOE

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
